﻿using System;
using UnityEngine;

namespace IllusionUtility.SetUtility
{
	// Token: 0x02000652 RID: 1618
	public static class SpriteRenderColorEx
	{
		// Token: 0x0600267B RID: 9851 RVA: 0x00147D80 File Offset: 0x00145F80
		public static void SetColorR(this SpriteRenderer sr, float r)
		{
			Color color = new Color(r, sr.color.g, sr.color.b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600267C RID: 9852 RVA: 0x00147DC8 File Offset: 0x00145FC8
		public static void SetColorG(this SpriteRenderer sr, float g)
		{
			Color color = new Color(sr.color.r, g, sr.color.b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600267D RID: 9853 RVA: 0x00147E10 File Offset: 0x00146010
		public static void SetColorB(this SpriteRenderer sr, float b)
		{
			Color color = new Color(sr.color.r, sr.color.g, b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600267E RID: 9854 RVA: 0x00147E58 File Offset: 0x00146058
		public static void SetColorA(this SpriteRenderer sr, float a)
		{
			Color color = new Color(sr.color.r, sr.color.g, sr.color.b, a);
			sr.color = color;
		}
	}
}
